module.exports = app => {
    const { INTEGER, STRING, FLOAT } = app.Sequelize;
     const MapInfo = app.model.define('map_info', {
      id: { type: INTEGER, primaryKey: true, autoIncrement: true },
      title: { type: STRING(50), allowNull: false },
      center: { type: STRING(50), allowNull: false },
      color: { type: STRING(50), allowNull: false },
      line_color: { type: STRING(50), allowNull: false },
      line_width: { type: STRING(50), allowNull: false },
      info: { type: STRING(50), allowNull: false },
      shape: { type: STRING(50), allowNull: false },
      x: { type: FLOAT },
      y: { type: FLOAT },
      w: { type: FLOAT },
      h: { type: FLOAT },
      tip: { type: STRING(50), allowNull: false },
    });
     return MapInfo;
  };